package ysu.sxm.ptjc.Domin;

import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class DefectReq {
    List<String> workNames;
    List<String> customers;
    List<String> projects;
    List<String> carType;
    List<String> proName;
    List<String> lineType;
    List<Integer> month;
    List<Integer> week;
    List<String> day;

    public boolean isNoOtherCondition(){
        if(workNames.isEmpty()&&customers.isEmpty()&&projects.isEmpty()&&carType.isEmpty()&&proName.isEmpty()&&lineType.isEmpty()){
            return true;
        }return false;
    }
    public List<String> getWorkNames() {
        return workNames;
    }

    public DefectReq setWorkNames(List<String> workNames) {
        this.workNames = workNames;
        return this;
    }

    public List<String> getCustomers() {
        return customers;
    }

    public DefectReq setCustomers(List<String> customers) {
        this.customers = customers;
        return this;
    }

    public List<String> getProjects() {
        return projects;
    }

    public DefectReq setProjects(List<String> projects) {
        this.projects = projects;
        return this;
    }

    public List<String> getCarType() {
        return carType;
    }

    public DefectReq setCarType(List<String> carType) {
        this.carType = carType;
        return this;
    }

    public List<String> getProName() {
        return proName;
    }

    public DefectReq setProName(List<String> proName) {
        this.proName = proName;
        return this;
    }

    public List<String> getLineType() {
        return lineType;
    }

    public DefectReq setLineType(List<String> lineType) {
        this.lineType = lineType;
        return this;
    }

    public List<Integer> getWeek() {
        return week;
    }

    public DefectReq setWeek(List<Integer> week) {
        this.week = week;
        return this;
    }

    public List<Integer> getMonth() {
        return month;
    }

    public DefectReq setMonth(List<Integer> month) {
        this.month = month;
        return this;
    }

    public List<String> getDay() {
        return day;
    }

    public DefectReq setDay(List<String> day) {
        this.day = day;
        return this;
    }

    @Override
    public String toString() {
        return "DefectReq{" +
                "workNames=" + workNames +
                ", customers=" + customers +
                ", projects=" + projects +
                ", carType=" + carType +
                ", proName=" + proName +
                ", lineType=" + lineType +
                ", week=" + week +
                ", month=" + month +
                ", day=" + day +
                '}';
    }
}
